package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 订单记录表
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-09
 */
@TableName("biz_consumer_order")
@Data
public class ConsumerOrder extends Model<ConsumerOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 消费者id 
     */
    private Integer consumerId;
    /**
     * 消费金额
     */
    private Integer subscribeMoney;
    /**
     * 支付状态
     */
    private Integer status;
    /**
     * 预约时间
     */
    private Date subscribeTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 称呼
     */
    private String name;
    /**
     * 上面门地址
     */
    private String address;
    /**
     * 门牌号
     */
    private String houseNumber;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 预约类型 1、198套餐  2、298套餐 3、398套餐...
     */
    private Integer reserveType;
    /**
     * 技师id
     */
    private Integer artificerId;
    /**
     * 服务地址id
     */
    private Integer addressId;

    /**
     * 订单号
     */
    private String  orderNo;
    /**
     * 支付时间
     */
    private Date  payTime;

    /**
     * 产品Id
     */
    private  Integer skuId;

    /**
     * 查询次数
     */
    private  int pullCount;

    /**
     * 微信支付流水号
     */
    private String  transactionId;

    /**
     * 微信的支付状态
     */
    private  String  tradeState;

    /**
     * 微信支付的描述
     */
    private  String  tradeStateDesc;

    /**
     * 微信唯一标识
     */
    private  String  openId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ConsumerOrder{" +
        "id=" + id +
        ", createTime=" + createTime +
        ", consumerId=" + consumerId +
        ", subscribeMoney=" + subscribeMoney +
        ", status=" + status +
        ", subscribeTime=" + subscribeTime +
        ", remark=" + remark +
        ", name=" + name +
        ", address=" + address +
        ", houseNumber=" + houseNumber +
        ", phone=" + phone +
        ", reserveType=" + reserveType +
        ", artificerId=" + artificerId +
        "}";
    }
}
